home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
faretable.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
1KB
|
29 lines
/* RCSVER $Id: faretable.sql,v 1.6 1999-11-19 14:02:44-06 randy CURRENT $ */
/* *************************************************************************
* Copyright (C) 1998, Agent Systems, Inc. All Rights Reserved.
*
* Name: faretable.sql
* Date: 12/28/1998
* memo: Randy Wood
* Description: Create the faretable table. This table contains parameters
* for each fare of a fareset.
* Changes: 05/24/99 RNW Added descr and shortdes.
************************************************************************* */
CREATE TABLE faretable
(
fareset NUMBER(38), /* ID of fareset */
fare NUMBER(38), /* Particular fare within a fareset */
class_num NUMBER(38), /* Fareclass for this fare */
amount NUMBER(36, 2), /* Dollar amount of this fare */
/* Number of passengers assigned to this fare */
passengers NUMBER(4) DEFAULT 1,
config_num NUMBER(38)
CONSTRAINT ref_faretable4 REFERENCES configset(num)
ON DELETE CASCADE,
descr VARCHAR2(20), /* Description of fare */
shortdes VARCHAR2(9), /* Short description of fare */
CONSTRAINT fk1_faretable FOREIGN KEY (fareset, config_num)
REFERENCES faresets(id, config_num) ON DELETE CASCADE,
CONSTRAINT pk_faretable PRIMARY KEY (fareset, fare, config_num)
);